<?php

// 项目配置文件

$GLOBALS[PROJECT]['PROJECT_CONFIG'] = array(
    'session' => '',    // 留空表示使用PHP原生SESSION功能，如果要使用apf框架内置的一个基于memcache的session类，用 framework.session
    'template_postfix' => '.phtml',  // 模板扩展名
    'locale'  => 'zh_CN',    // 使用的语言 en_US
    'cache' => 'memcache',
    'theme_server' => 'theme.demo.com',
    'db_driver' => 'mysqli',
    'db_host' => array(
        '*' => 'mysql://root:kodak.sq@192.168.0.161:3306',
        'host1' => 'mysql://root:123456@127.0.0.1:3306',
        'host2' => 'mysql://root:kodak.sq@127.0.0.1:3307',
    ),
);

$GLOBALS[PROJECT]['APP_CONFIG'] = array(
    'www.demo.com' => array(
        'project' => 'demo',
        'domain' => 'www.demo.com',
        'sub_domain' => 'www',
        'main_domain' => 'demo.com',
        'app' => 'www',
    ),
    'theme.demo.com' => array(
        'project' => 'demo',
        'domain' => 'theme.demo.com',
        'sub_domain' => 'theme',
        'main_domain' => 'demo.com',
        'app' => 'theme',
    ),
);

$GLOBALS[PROJECT]['MODULE_CONFIG'] = array(
    10000 => array('name' => 'user', 'desc' => '用户模型', 'db_host' => array('users' => 'host1', 'user_profiles' => 'host2')),
);
?>
